let path = require('path')

module.exports = {
    css: {
        loaderOptions: {
            less: {
                lessOptions: {
                    modifyVars: {
                        'primary-color': '#1DA57A',
                        'link-color': '#1DA57A',
                        'border-radius-base': '2px',
                    },
                    javascriptEnabled: true,
                },
            },
        },
    },
    devServer: {
        proxy: {
            '/api': {
                target: 'http://172.16.10.46:8000',
                pathRewrite: {'^/api': ''},
                changeOrigin: true
            }
        }
    }
    ,
    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'less',
            patterns: [path.resolve(__dirname, "./src/styles/theme/theme.less")],
        }
    },
    outputDir: 'dist',
    assetsDir: 'static',
};